package DesignPatterns.CombinationMode;

public abstract class Component {
    String Name;
    String Des;

    public Component(String name, String des) {
        super();
        Name = name;
        Des = des;
    }

    public  void add(Component component){
        throw new UnsupportedOperationException();
    }
    public  void remove(Component component){
        throw new UnsupportedOperationException();
    }
    public abstract void show();

    public void setName(String name) {
        Name = name;
    }

    public void setDes(String des) {
        Des = des;
    }

    public String getName() {
        return Name;
    }

    public String getDes() {
        return Des;
    }
}
